package com.juanjuan.myproject;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@SpringBootApplication
public class MyApplication {

    public static void main(String[] args) {
        //这里就只需要让工程运行起来就行了
        SpringApplication.run(MyApplication.class);
    }
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){return new ServerEndpointExporter();}
}

